import 'package:flutter/material.dart';
import 'package:yp/config/style.dart';
import 'package:yp/widgets/index.dart';

class ApplyExpertSuccess extends StatelessWidget {
  const ApplyExpertSuccess({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: YPNavigationBar('申请成为慧达人'),
      body:
          Column(children: [_header(), SizedBox(height: 10), _bottom(context)]),
    );
  }

  Widget _header() {
    return Container(
        color: EsColors.White,
        padding: EdgeInsets.symmetric(vertical: 16, horizontal: 25),
        child: Row(children: [
          Column(children: [
            Image.asset('assets/images/audit_submit.png',
                width: 25, height: 25),
            SizedBox(height: 8),
            Text('提交申请',
                style: TextStyle(
                    color: EsColors.Title,
                    fontSize: EsSizes.SM,
                    fontWeight: EsFontWeights.Normal)),
            SizedBox(height: 2),
            Text('12.30 12:38',
                style: TextStyle(
                    color: EsColors.ContentSecondary,
                    fontSize: EsSizes.XS,
                    fontWeight: EsFontWeights.Normal))
          ]),
          SizedBox(width: 14),
          Expanded(
              child: Padding(
            padding: const EdgeInsets.only(top: 12),
            child: YpLine(color: Color(0xffe8e8e8)),
          )),
          SizedBox(width: 14),
          Column(children: [
            Image.asset('assets/images/audit_wait.png', width: 25, height: 25),
            SizedBox(height: 8),
            Text('等待审核',
                style: TextStyle(
                    color: EsColors.Title,
                    fontSize: EsSizes.SM,
                    fontWeight: EsFontWeights.Normal)),
            SizedBox(height: 2),
            Text('',
                style: TextStyle(
                    color: EsColors.ContentSecondary,
                    fontSize: EsSizes.XS,
                    fontWeight: EsFontWeights.Normal))
          ]),
          SizedBox(width: 14),
          Expanded(
              child: Padding(
            padding: const EdgeInsets.only(top: 12),
            child: YpLine(color: Color(0xffe8e8e8)),
          )),
          SizedBox(width: 14),
          Column(children: [
            Image.asset('assets/images/audit_submit.png',
                width: 25, height: 25),
            SizedBox(height: 8),
            Text('申请成功',
                style: TextStyle(
                    color: EsColors.Primary,
                    fontSize: EsSizes.SM,
                    fontWeight: EsFontWeights.Normal)),
            SizedBox(height: 2),
            Text('')
          ])
        ]));
  }

  Widget _bottom(BuildContext context) {
    return Container(
      color: EsColors.White,
      padding: EdgeInsets.all(26),
      child: Column(children: [
        Text('重要提醒',
            style: TextStyle(
                color: EsColors.Primary,
                fontSize: EsSizes.LG,
                fontWeight: EsFontWeights.Medium)),
        SizedBox(height: 14),
        Text(
            '感谢您申请壹品慧生活KOC , 您的申请已通过，请扫描下方二维码下载 “壹品慧” 专属APP，享受自购省钱，分享赚钱的专属特权 !',
            style: TextStyle(
                color: EsColors.Title,
                fontSize: EsSizes.SM,
                fontWeight: EsFontWeights.Medium)),
        SizedBox(height: 20),
        Image.asset('assets/images/yp_code.png', width: 146, height: 146),
        SizedBox(height: 26),
      ]),
    );
  }
}
